<extend name="Public:base" />

<block name="content">

    <form action="{:U('RateManage/index')}" method="post">
    <div class="table-responsive">
        <table class="table table-striped table-bordered table-hover search-form">
            <thead>
                <tr>
                    <th>
                    <input name="phone" type="text" value="{:I('phone')}"  placeholder="师傅账号"  />&nbsp;
                    <input name="name" type="text" value="{:I('name')}"  placeholder="师傅姓名"/>
                    <span>
                    <input  class="btn btn-primary btn-sm radius5" type="submit" value="查询"/>
                    </span>
                    <a  class="btn btn-primary btn-sm radius5" href="{:U('RateManage/excelout')}">导出</a>
                    <!--  <a class="btn btn-primary" href="javascript:;" id="search" url="{:U('Member/index')}">搜索</a>-->
                    </th>
                </tr>
            </thead>
        </table>
    </div>
    </form>
    总利息：{$total}元
    <div class="row">
        <div class="col-xs-12">
            <div class="table-responsive">
                <table class="table table-striped table-bordered table-hover" id="mytable">

                    <thead>
                    <tr>
                        <th>师傅账号</th>
                        <th>师傅名称</th>
                        <th>保证金总额(元)</th>
                        <th>总利息(元)</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="list" id="ba" key="k">
                        <tr>
                            <td>{$ba['phone']}</td>
                            <td>{$ba['id_name']}</td>
                            <td>{$ba['bond']}</td>
                            <td>{$ba['money']}</td>
                            <td><a href="{:U('RateManage/detail&id='.$ba['user_id'])}" class="btn btn-xs btn-info radius5">查看详情</a></td>
                        </tr>
                    </volist>
                    <tr>
                        <td colspan="20" class="page">{$page}</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</block>
<block name="css">
    <style type="text/css">

    </style>
</block>
<block name="javascript">
    <script>

    </script>
</block>